from sympy import Number
def kk(e,f,g,h):
    e = Number(e)
    f = Number(f)
    g = Number(g)
    h = Number(h)
    return e+f+g+h


def add(args):
    um = 0
    for arg in args:
        um += Number(arg)
    print(um)
    return um

#tt=input()
#ntm=[Number(x.strip()) for x in tt.split(",")]
#add(ntm)

def Ta():
    d=[1,2,3,4,5,6,7,8,9]
    for i in d:
        for j in range(1, i + 1):
            print(f'{j}x{i}={i * j}')

#Ta()

def ju():
    input_ju=input("请你输入一组数")
    analysis_ju=[Number(x.strip()) for x in input_ju.split(',')]
    input_ju_num=input("请你输入一个数")
    analysis_ju_num=Number(input_ju_num)
    if analysis_ju_num>len(analysis_ju):
        print("-1")
    else:
        print(analysis_ju[analysis_ju_num-1])
#ju()

def add1():
    umt=0
    for i in range(1,300):
        umt=umt+i
    print(umt)
#add1()

def sub1():
    d1=dict()
    d1["测试部"]=['小明','小张','小黄','小杨']
    d1["研发部"] = ['小黄','小李','小王','小杨','小周']
    d1["市场部"] = ['小杨','小张','小吴','小冯','小周']
    jh=set()
    for depart,people in d1.items():
        jh.update(people)
    print(len(jh))
    print(jh)
#sub1()


def sub2():
    jh1=set()
    jh1={'小明','小张','小黄','小杨'}
    jh2=set()
    jh2={'小黄','小李','小王','小杨','小周'}
    jh3=set()
    jh3={'小杨','小张','小吴','小冯','小周'}

    a1=jh3-jh1-jh2
    b1=jh1-jh3-jh2
    c1=jh2-jh1-jh3
    print(len(a1)+len(b1)+len(c1))
    print(a1,b1,c1)


    d=jh3&jh1
    f=jh3&jh2
    g=jh3&jh2
    sub3=d|f|g
    print(len(sub3))
    print(sub3)

sub2()